import request from '@/utils/request'

// 查询流动人口信息列表
export function listPopulation(query) {
  return request({
    url: '/population/population/list',
    method: 'get',
    params: query
  })
}

// 查询流动人口信息详细
export function getPopulation(populationId) {
  return request({
    url: '/population/population/' + populationId,
    method: 'get'
  })
}

// 新增流动人口信息
export function addPopulation(data) {
  return request({
    url: '/population/population',
    method: 'post',
    data: data
  })
}

// 修改流动人口信息
export function updatePopulation(data) {
  return request({
    url: '/population/population',
    method: 'put',
    data: data
  })
}

// 删除流动人口信息
export function delPopulation(populationId) {
  return request({
    url: '/population/population/' + populationId,
    method: 'delete'
  })
}
